package com.ruoyi.system.domain;

import java.math.BigDecimal;
import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 实验与OJ题目的关联对象 assignment_oj_problems
 * 
 * @author ruoyi
 * @date 2025-09-25
 */
public class AssignmentOjProblems extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 关联ID */
    private Long id;

    /** 实验ID */
    @Excel(name = "实验ID")
    private Long assignmentId;

    /** OJ题目ID */
    @Excel(name = "OJ题目ID")
    private Long ojProblemId;

    /** 该题目在实验中的分值 */
    @Excel(name = "该题目在实验中的分值")
    private BigDecimal problemScore;

    /** 题目在实验中的展示顺序 */
    @Excel(name = "题目在实验中的展示顺序")
    private Long sortOrder;

    /** 创建时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "创建时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date createdAt;

    /** 更新时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "更新时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date updatedAt;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }

    public void setAssignmentId(Long assignmentId) 
    {
        this.assignmentId = assignmentId;
    }

    public Long getAssignmentId() 
    {
        return assignmentId;
    }

    public void setOjProblemId(Long ojProblemId) 
    {
        this.ojProblemId = ojProblemId;
    }

    public Long getOjProblemId() 
    {
        return ojProblemId;
    }

    public void setProblemScore(BigDecimal problemScore) 
    {
        this.problemScore = problemScore;
    }

    public BigDecimal getProblemScore() 
    {
        return problemScore;
    }

    public void setSortOrder(Long sortOrder) 
    {
        this.sortOrder = sortOrder;
    }

    public Long getSortOrder() 
    {
        return sortOrder;
    }

    public void setCreatedAt(Date createdAt) 
    {
        this.createdAt = createdAt;
    }

    public Date getCreatedAt() 
    {
        return createdAt;
    }

    public void setUpdatedAt(Date updatedAt) 
    {
        this.updatedAt = updatedAt;
    }

    public Date getUpdatedAt() 
    {
        return updatedAt;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("assignmentId", getAssignmentId())
            .append("ojProblemId", getOjProblemId())
            .append("problemScore", getProblemScore())
            .append("sortOrder", getSortOrder())
            .append("createdAt", getCreatedAt())
            .append("updatedAt", getUpdatedAt())
            .toString();
    }
}
